package com.innovationhero.mainUI.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.innovationhero.mainUI.client.UX.IdeaUX;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class mainUI implements EntryPoint {
	private Button clickMeButton;
	private Button idea;
	
	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();
		 
		
		clickMeButton = new Button();
		idea = new Button();
		idea.setText("this is an idea");
		
		// rootPanel.add(clickMeButton);
		clickMeButton.setText("Click me!");
		clickMeButton.addClickHandler(new ClickHandler(){
			public void onClick(ClickEvent event) {
				Window.alert("Hello, GWT World!");
			}
		});
		IdeaUX myIdeaUX = new IdeaUX();
		rootPanel.add(myIdeaUX.ideaBar(),100, 100);
		rootPanel.add(myIdeaUX.ideaBar(),100, 350);
	}
}
